/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.paris5.master2.guitarmaster.bean;

/**
 *
 * @author mourad
 */
public class EcomProductType implements EcomBean {
    
    private Integer idProductType;
    private String title;
    private String description;
    private Float price;
    private EcomScore score;
    private String photo;
    private Integer quantity;
    private EcomCategory category;
    
    public String getDescription() {
        return description;
    }

    public EcomCategory getCategory() {
        return category;
    }

    public Integer getIdProductType() {
        return idProductType;
    }

    public String getPhoto() {
        return photo;
    }

    public Float getPrice() {
        return price;
    }

    public EcomScore getScore() {
        return score;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getTitle() {
        return title;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setCategory(EcomCategory category) {
        this.category = category;
    }

    public void setIdProductType(Integer idProductType) {
        this.idProductType = idProductType;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public void setScore(EcomScore score) {
        this.score = score;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EcomProductType other = (EcomProductType) obj;
        if (this.idProductType != other.idProductType && (this.idProductType == null || !this.idProductType.equals(other.idProductType))) {
            return false;
        }
        if ((this.title == null) ? (other.title != null) : !this.title.equals(other.title)) {
            return false;
        }
        if ((this.description == null) ? (other.description != null) : !this.description.equals(other.description)) {
            return false;
        }
        if (this.price != other.price && (this.price == null || !this.price.equals(other.price))) {
            return false;
        }
        if (this.category != other.category && (this.category == null || !this.category.equals(other.category))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 59 * hash + (this.idProductType != null ? this.idProductType.hashCode() : 0);
        hash = 59 * hash + (this.title != null ? this.title.hashCode() : 0);
        hash = 59 * hash + (this.description != null ? this.description.hashCode() : 0);
        hash = 59 * hash + (this.price != null ? this.price.hashCode() : 0);
        hash = 59 * hash + (this.score != null ? this.score.hashCode() : 0);
        hash = 59 * hash + (this.photo != null ? this.photo.hashCode() : 0);
        hash = 59 * hash + (this.category != null ? this.category.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "EcomProductType{" + "idProductType=" + idProductType + ", title=" + title + ", description=" + description + ", price=" + price + ", score=" + score + ", photo=" + photo + ", category=" + category + '}';
    } 
}
